home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 016 / fansi115.arc / SK111.PCH < prev    next >
Encoding:
Text File  |  1986-02-06  |  2.5 KB  |  75 lines

  1. A
  2. ;    This is file SK111.PCH
  3. ;
  4. ;The following command should be applied to SK.COM
  5. ;(Version 1.11A or equivalent, unnecessary for 1.5)
  6. ;to patch it so that LEFT SHIFT-RIGHT SHIFT is used
  7. ;to enter Sidekick instead of ALT-CTRL.
  8. ;This allows the use of FANSI-CONSOLE's ALT-CTRL
  9. ;key combinations without waking up Sidekick.
  10. ;Note that the patched routine may not be in exactly
  11. ;the same place in your version of Sidekick.
  12. ;----------------------------------------------
  13. ;    debug sk.com <sk111.pch
  14. ;----------------------------------------------
  15. ;The following routine will appear at ABOUT the same
  16. ;place in your version, check the address and
  17. ;change the patch address if it is different in your version.
  18. ;This checks for Alt-Ctrl to enter SideKick.
  19. ;xxxx:0876 50        PUSH    AX                
  20. ;xxxx:0877 2E        CS:                    
  21. ;xxxx:0878 803E360200    CMP    BYTE PTR [0236],00        
  22. ;xxxx:087D 7510     JNZ    088F                
  23. ;xxxx:087F 2E        CS:                    
  24. ;xxxx:0880 A06A0A    MOV    AL,[0A6A]            
  25. ;xxxx:0883 240F     AND    AL,0F                
  26. ;xxxx:0885 3C0C     CMP    AL,0C                
  27. ;xxxx:0887 7406     JZ    088F    ;Replace this jump with NOPs
  28. ;xxxx:0889 3C03     CMP    AL,03                
  29. ;xxxx:088B 7402     JZ    088F                
  30. ;xxxx:088D 58        POP    AX                
  31. ;xxxx:088E CF        IRET                    
  32.  
  33. a887
  34. nop
  35. nop
  36. ;If you want SK to check for something other than Left-Shift-Right-Shift
  37. ;Change the 03 on the following line to:
  38. ;    05    for Ctrl-Right-Shift
  39. ;    06    for Ctrl-Left-Shift
  40. ;    09    for Alt-Right-Shift
  41. ;    0a    for Alt-Left-Shift
  42. ;And then remove the semi-colon at the start of the line:
  43. ;cmp    al,03
  44.  
  45. A
  46. ;The following routine will appear at ABOUT the same
  47. ;place in your version, check the address and
  48. ;change the patch address if it is different in your version.
  49. ;This checks for Alt-Ctrl to exit SideKick (Alt checked previously).
  50. ;xxxx:1972 833EC60200    CMP    WORD PTR [02C6],+00        
  51. ;xxxx:1977 75EB     JNZ    1964                
  52. ;xxxx:1979 F606C50204    TEST    BYTE PTR [02C5],04        
  53. ;xxxx:197E 751D     JNZ    199D        ;Replace this jump with NOPs.
  54. ;xxxx:1980 80FA03    CMP    DL,03                
  55. ;xxxx:1983 7418     JZ    199D                
  56. ;xxxx:1985 FF0EC802    DEC    WORD PTR [02C8]         
  57. ;xxxx:1989 75D9     JNZ    1964                
  58. ;xxxx:198B C706C8029600 MOV    WORD PTR [02C8],0096        
  59. ;xxxx:1991 F6443C01    TEST    BYTE PTR [SI+3C],01
  60.  
  61. a197e
  62. nop
  63. nop
  64. ;If you want SK to check for something other than Left-Shift-Right-Shift
  65. ;Change the 03 on the following line to:
  66. ;    05    for Ctrl-Right-Shift
  67. ;    06    for Ctrl-Left-Shift
  68. ;    09    for Alt-Right-Shift
  69. ;    0a    for Alt-Left-Shift
  70. ;And then remove the semi-colon at the start of the line:
  71. ;cmp    dl,03
  72.  
  73. w
  74. q
  75.